package com.demo.designMode.celve;

/**
 * 装策略的容器
 */
public class Context {

    private IStrategy iStrategy;

    public Context(IStrategy iStrategy) {
        this.iStrategy = iStrategy;
    }

    /**
     * 打开策略容器
     */
    public void open() {
        this.iStrategy.operate();

    }
}
